﻿@model List<ContactApp.DataModels.Contact>


<table class="table table-hover">
    @foreach (var contact in Model)
    {
        <tr>
            <td>@contact.FirstName @contact.LastName</td>
            <td>@contact.Title</td>
            <td>@contact.PhoneNumber</td>
            <td>
                <form method="post" action="DeleteContact">
                    <input class="btn btn-danger" type="submit" value="Delete" />
                    <input hidden type="text" name="id" value="@contact.Id" />

                </form>
            </td>
            <td>
                <a class="btn btn-warning" href="/Home/EditContact/@contact.Id">Edit</a>
            </td>
        </tr>
    }



</table>